<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 这个以后到移动端会说 -->
		<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			/*这里要这样，继承文档的高度*/
			html,
			body {
				height: 100%;
			}

			#wrap {
				min-height: 100%;
				background: pink;
			}

			.main {
				text-align: center;
				padding-bottom: 50px;
			}

			#footer {
				height: 50px;
				line-height: 50px;
				background: deeppink;
				text-align: center;
				margin-top: -50px;
			}
		</style>
	</head>
	<body>
		<!-- 黏连布局，这个结构是固定的 -->
		<div id="wrap">
			<div class="main">
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
				main <br />
			</div>
		</div>
		<div id="footer">
			footer
		</div>
	</body>
</html>
